package day014.fanXing.demo01;

import java.util.ArrayList;

public class Demo {
    public static void main(String[] args) {
        ArrayList list = new ArrayList();
        list.add("Hello");
        list.add("World");
        list.add(100);
        list.add(true);
        for (Object o : list) {
            String str = (String) o;
            System.out.println(str + "长度为：" + str.length());
        }
    }
}
